package org.one.afternoon.service.impl;

import org.one.afternoon.domain.Rank;
import org.one.afternoon.mapper.RankMapper;
import org.one.afternoon.service.RankService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RankServiceImpl implements RankService {
    @Autowired
    private RankMapper rankMapper;

    @Override
    public List<Rank> findAll() {
        return rankMapper.findAll();
    }

    @Override
    public List<Rank> queryOne(Rank rank) {
        return rankMapper.queryOne(rank);
    }

    @Override
    public boolean insertOne(Rank rank) {
        return rankMapper.insertOne(rank);
    }

    @Override
    public boolean deleteOne(Integer index) {
        return rankMapper.deleteOne(index);
    }

    @Override
    public boolean updateOne(Rank rank) {
        return rankMapper.updateOne(rank);
    }
}
